WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
250281
Remove unused attributes from HTMLAttributeNames.in
https://bugs.webkit.org/show_bug.cgi?id=250281
Summary
Remove unused attributes from HTMLAttributeNames.in
Ahmad Saleem
Reported
2023-01-07 15:43:46 PST
Hi Team, I am not able to find anything beside this line here and it seems Blink also got rid of it: Reference:
https://github.com/WebKit/WebKit/blob/8b8f0c201eb0d1a96590a17ab6b6908f137707c0/Source/WebCore/html/HTMLAttributeNames.in#L446
Can we also remove this now? If it is not supported in WebKit etc.? Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Tim Nguyen (:ntim)
Comment 1
2023-01-07 16:31:09 PST
There doesn't seem any usages of `webkitgrammarAttr` in the codebase, so seems like unused code to me.
Tim Nguyen (:ntim)
Comment 2
2023-01-07 16:37:27 PST
x-webkit-imagemenu / x-webkit-speech / x-webkit-airplay seem unused as well. I bet there's more unused ones too. You can do a plain text search for the generated indentifiers to check:
https://searchfox.org/wubkat/source/__GENERATED__/WebCore/DerivedSources/HTMLNames.cpp#2998
Ahmad Saleem
Comment 3
2023-01-07 16:40:26 PST
(In reply to Tim Nguyen (:ntim) from
comment #2
)
> x-webkit-imagemenu / x-webkit-speech / x-webkit-airplay seem unused as well. > I bet there's more unused ones too. > > You can do a plain text search for the generated indentifiers to check: >
https://searchfox.org/wubkat/source/__GENERATED__/WebCore/DerivedSources/
> HTMLNames.cpp#2998
Yes, I think I might rename this bug title and try to find all which seems unused and ask for some input. Few days back, I asked on Slack to Ryosuke about similar Blink commit, where they removed a bunch of these. Let me try to find it in morning and compile list here and get input. Can do PR to clean all in one go.
Ahmad Saleem
Comment 4
2023-01-08 04:17:36 PST
So I
Ahmad Saleem
Comment 5
2023-01-08 05:12:27 PST
--> x-webkit-speech
https://github.com/WebKit/WebKit/blob/866813ec2e4eb4f8646237cccfe1ad3ad76f46e1/Source/WebCore/html/HTMLAttributeNames.in#L445
--> x-webkit-imagemenu
https://github.com/WebKit/WebKit/blob/866813ec2e4eb4f8646237cccfe1ad3ad76f46e1/Source/WebCore/html/HTMLAttributeNames.in#L446
--> x-webkit-airplay
https://github.com/WebKit/WebKit/blob/866813ec2e4eb4f8646237cccfe1ad3ad76f46e1/Source/WebCore/html/HTMLAttributeNames.in#L444
## Few more: Blink Commit -
https://chromium.googlesource.com/chromium/blink/+/674f886367e5835520a68d15bcaf36d4493d5a26
Following: aria-setsize aria-posinset aria-sort cellborder disposition expanded focused indeterminate itemid itemprop itemref itemscope itemtype playcount loopend loopstart onwebkitspeechchange onwebkitkeyadded onwebkitkeyerror onwebkitkeymessage onwebkitneedkey onwebkitsourceclose onwebkitsourceended onwebkitsourceopen pluginspage pluginurl primary progress prompt sortable sortdirection tableborder top
Tyler Wilcock
Comment 6
2023-01-12 13:52:28 PST
aria-setsize, aria-posinset, and aria-sort are in use.
Radar WebKit Bug Importer
Comment 7
2023-01-14 15:44:15 PST
<
rdar://problem/104267186
>
Anne van Kesteren
Comment 8
2023-05-15 01:12:10 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/13869
EWS
Comment 9
2023-05-15 07:16:59 PDT
Committed
264069@main
(5bca27238be0): <
https://commits.webkit.org/264069@main
> Reviewed commits have been landed. Closing PR #13869 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug