WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
160029
playsInline IDL attribute has the wrong casing
https://bugs.webkit.org/show_bug.cgi?id=160029
Summary
playsInline IDL attribute has the wrong casing
Domenic Denicola
Reported
2016-07-21 10:14:50 PDT
https://trac.webkit.org/browser/trunk/Source/WebCore/html/HTMLVideoElement.idl?rev=202660#L36
shows a "playsinline" IDL attribute (lowercase "i"). However, per spec it should be "playsInline" (uppercase "i"):
https://html.spec.whatwg.org/multipage/embedded-content.html#the-video-element:dom-video-playsinline
https://html.spec.whatwg.org/multipage/embedded-content.html#dom-video-playsinline
Attachments
Patch
(4.62 KB, patch)
2016-07-21 10:33 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-07-21 10:17:26 PDT
Jer / Eric, what do you think? Can we simply fix the case or do we need to support both now? I checked Firefox and Chrome but neither seems to implement this IDL attribute.
Domenic Denicola
Comment 2
2016-07-21 10:18:20 PDT
It was added 3 weeks ago so I am hopeful it can still be changed.
Jon Lee
Comment 3
2016-07-21 10:19:53 PDT
We can fix the case since it's new.
Radar WebKit Bug Importer
Comment 4
2016-07-21 10:21:35 PDT
<
rdar://problem/27474031
>
Chris Dumez
Comment 5
2016-07-21 10:33:27 PDT
Created
attachment 284226
[details]
Patch
Chris Dumez
Comment 6
2016-07-21 10:40:45 PDT
Thanks for letting us know Domenic!
Chris Dumez
Comment 7
2016-07-21 10:55:26 PDT
Comment on
attachment 284226
[details]
Patch Clearing flags on attachment: 284226 Committed
r203511
: <
http://trac.webkit.org/changeset/203511
>
Chris Dumez
Comment 8
2016-07-21 10:55:31 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 9
2016-07-21 19:04:18 PDT
Comment on
attachment 284226
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=284226&action=review
> Source/WebCore/html/HTMLVideoElement.idl:36 > + [Reflect=playsinline] attribute boolean playsInline;
I’m pretty sure that Reflect already lowercases the attribute name to construct the name of the content attribute, so this "=playsinline" part is not needed.
Darin Adler
Comment 10
2016-07-21 19:05:45 PDT
Yes, it’s lowercased in this line of code: $contentAttributeName = lc $generator->AttributeNameForGetterAndSetter($attribute) if $contentAttributeName eq "VALUE_IS_MISSING"; Note the "lc".
Chris Dumez
Comment 11
2016-07-21 19:25:59 PDT
(In reply to
comment #10
)
> Yes, it’s lowercased in this line of code: > > $contentAttributeName = lc > $generator->AttributeNameForGetterAndSetter($attribute) if > $contentAttributeName eq "VALUE_IS_MISSING"; > > Note the "lc".
I did not know that, thanks for pointing this out. I will upload a patch to fix it.
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