Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

innerText getter has many whitespace-related subtleties #25655

Open
pshaughn opened this issue Jan 30, 2020 · 0 comments
Open

innerText getter has many whitespace-related subtleties #25655

pshaughn opened this issue Jan 30, 2020 · 0 comments

Comments

@pshaughn
Copy link
Member

html/dom/elements/the-innertext-idl-attribute/getter.html tests innerText in many situations. One failure involves <ruby> and I don't understand where that one's coming from at all, but most of them involve getting back different whitespace than what's expected.

https://html.spec.whatwg.org/multipage/dom.html#inner-text-collection-steps describes an elaborate series of steps that are mostly about figuring out where linebreaks go; I think servo's implementation (mostly in layout/query.rs) is out of sync with the spec.

Layout 2020 seems to have a lot of the relevant functionality stubbed out completely right now.

@jdm jdm added this to To do in web-platform-test failures via automation Jan 31, 2020
@jdm jdm added A-content/dom Interacting with the DOM from web content A-layout/query and removed A-content/dom Interacting with the DOM from web content labels Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants