You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Properly use [PutForwards] like we should in WebIDL interfaces #9990
A-content/domInteracting with the DOM from web contentB-high-valueRepresents work that would have a big impactC-needs-testAn automated test is required.
Marking this as high-value because code like foo.style = "display: none" just silently does not work in Servo right now, which likely leads to web compat issues.
I've tried to find every location that defines a PutForwards and note its current status. The only implemented attributes with a missing PutForwards appear to be ElementCSSInlineStyle.cssText and multiple instances of .relList, although it's possible I missed a relevant spec.
from WHATWG HTML:
Document.location - already PutForwards in Servo
Window.location - already PutForwards in Servo
HTMLIFrameElement.sandbox - already PutForwards in Servo
HTMLAnchorElement.relList - attribute exists in Servo without PutForwards
HTMLAreaElement.relList - attribute exists in Servo without PutForwards
HTMLLinkElement.relList - attribute exists in Servo without PutForwards
HTMLFormElement.relList - attribute is entirely absent in Servo
HTMLLinkElement.sizes - attribute is commented out in Servo
HTMLOutputElement.htmlFor - attribute is commented out in Servo
From CSSOM:
CSSStyleRule.cssText - already PutForwards in Servo
ElementCSSInlineStyle.cssText - attribute exists in Servo with commented-out PutForwards
CSSImportRule.mediaText - attribute is commented out in Servo
Stylesheet.mediaText - attribute is commented out in Servo
CSSPageRule.cssText - no IDL in servo
CSSMarginRule.cssText - no IDL in servo
From CSS Fonts Module:
CSSFontFaceRule.style - not PutForwards in spec, attribute with PutForwards is commented out in Servo (probably just cut and paste from other CSS*Rule IDL)
The ElementCSSInlineStyle.cssText case has tests for it (and pass when the PutForwards is included); the .relList cases seem to be missing test coverage for PutForwards behavior.
As far as I can tell, assuming the above PR merges, we will be up-to-date on [PutForwards] with respect to attributes that currently exist in Servo's IDL, and remaining lack of PutForwards behavior is because the entire attribute is unimplemented.
A-content/domInteracting with the DOM from web contentB-high-valueRepresents work that would have a big impactC-needs-testAn automated test is required.
Activity
jdm commentedon Mar 14, 2016
Specifically, the PR looks good but is missing tests that the attributes using PutForwards do what they're supposed to.
tbu- commentedon Mar 15, 2016
I'd like to try this.
jdm commentedon Mar 15, 2016
@tbu- Please do! Ask questions here if anything's unclear :)
nox commentedon Oct 1, 2017
This still hasn't been done.
pshaughn commentedon Dec 12, 2019
#25037 and #25038 were me not realizing that ElementCSSInlineStyle.webidl has the PutForwards part of HTMLElement.style commented out entirely.
nox commentedon Jan 6, 2020
Oops, misclick.
jdm commentedon Jan 6, 2020
Marking this as high-value because code like
foo.style = "display: none"just silently does not work in Servo right now, which likely leads to web compat issues.pshaughn commentedon Jan 7, 2020
I've tried to find every location that defines a PutForwards and note its current status. The only implemented attributes with a missing PutForwards appear to be ElementCSSInlineStyle.cssText and multiple instances of .relList, although it's possible I missed a relevant spec.
from WHATWG HTML:
From CSSOM:
From CSS Fonts Module:
pshaughn commentedon Jan 7, 2020
The ElementCSSInlineStyle.cssText case has tests for it (and pass when the PutForwards is included); the .relList cases seem to be missing test coverage for PutForwards behavior.
Auto merge of #25450 - pshaughn:putforwards, r=Manishearth
pshaughn commentedon Jan 7, 2020
As far as I can tell, assuming the above PR merges, we will be up-to-date on [PutForwards] with respect to attributes that currently exist in Servo's IDL, and remaining lack of PutForwards behavior is because the entire attribute is unimplemented.
Auto merge of #25450 - pshaughn:putforwards, r=jdm,Manishearth
Auto merge of #25450 - pshaughn:putforwards, r=jdm,Manishearth
Auto merge of #25450 - pshaughn:putforwards, r=jdm,Manishearth
jdm commentedon Jan 23, 2020
This should be fixed now!