Bug 257758 - JS / SVG: Error when removing lengthAdjust attribute
Summary: JS / SVG: Error when removing lengthAdjust attribute
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-06-06 12:03 PDT by Ahmad Saleem
Modified: 2024-01-12 04:09 PST (History)
4 users (show)

See Also:


Attachments
testcase (924 bytes, text/html)
2023-06-14 01:50 PDT, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.