Bug 257758

Summary: JS / SVG: Error when removing lengthAdjust attribute
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: karlcow, sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
testcase none

Description Ahmad Saleem 2023-06-06 12:03:21 PDT
Hi Team,

I came across another failing testcase in Safari Technology Preview 171 and WebKit ToT:

Test Case: https://jsfiddle.net/dty3koox/

^ Safari shows following:

lengthAdjust before removeAttribute: 2

lengthAdjust after removeAttribute: 2 <-------- 'It is 1 in other browsers e.g., Chrome Canary 116 and Firefox Nightly 115'

Blink Bug: crbug.com/523685

^ It might not be 1-1 merge, just wanted to raise for our tracking purposes.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-06-13 12:04:19 PDT
<rdar://problem/110724849>
Comment 2 Karl Dubost 2023-06-14 01:50:35 PDT
Created attachment 466689 [details]
testcase

Confirmed.
Comment 3 Ahmad Saleem 2024-01-12 04:02:08 PST
https://searchfox.org/wubkat/rev/889804f28206ffa2dd7930e2e52df50dc4260049/Source/WebCore/svg/SVGElement.cpp#150

Here adding:

if (value.isNull())
    return;

___

Haven't tried but will try and see, if it works.
Comment 4 Ahmad Saleem 2024-01-12 04:09:08 PST
(In reply to Ahmad Saleem from comment #3)
> https://searchfox.org/wubkat/rev/889804f28206ffa2dd7930e2e52df50dc4260049/
> Source/WebCore/svg/SVGElement.cpp#150
> 
> Here adding:
> 
> if (value.isNull())
>     return;
> 
> ___
> 
> Haven't tried but will try and see, if it works.

Didn't work.