Bug 247647

Summary: Sync Document.readyState with the HTML Specification
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: akeerthi, cdumez, karlcow, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-11-08 14:50:16 PST
Hi Team,

While going through the WebDIL, I noticed that we are missing following:

'''
readonly attribute DocumentReadyState readyState;
'''

Web-Spec: https://html.spec.whatwg.org/#the-document-object

Checked with "readyState" and we only have "enum" but not above "read-only" bit.

https://github.com/WebKit/WebKit/blob/main/Source/WebCore/dom/Document.idl

___

I am just creating this bug to align with specs.

Thanks!
Comment 4 Radar WebKit Bug Importer 2022-11-15 14:51:29 PST
<rdar://problem/102388385>
Comment 5 Karl Dubost 2022-11-15 15:45:57 PST
I must not have been fully awake when I posted these two comments. Sigh.


It's not in https://searchfox.org/wubkat/source/Source/WebCore/dom/Document.idl#102
but I see it here
https://searchfox.org/wubkat/source/Source/WebCore/dom/Document+HTML.idl#38
Comment 6 Karl Dubost 2022-11-15 15:49:42 PST
I confirmed internally, this is working as intended.