-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Issues with <style>/<link> processsing #2124
Comments
domenic
added a commit
that referenced
this issue
Jan 24, 2018
In particular, fixes #2122, where it was discovered that as of 8c84ebf we made the sheet null for empty <style> elements. There are a lot more issues with this area of the codebase, as discovered in #2122 (comment). But we'll tackle them incrementally in #2124. This fixes one of them, about disconnected sheets, but leaves the ones having to do with <link> and @import and parsing alone for now.
domenic
added a commit
that referenced
this issue
Jan 24, 2018
In particular, fixes #2122, where it was discovered that as of 8c84ebf we made the sheet null for empty <style> elements. There are a lot more issues with this area of the codebase, as discovered in #2122 (comment). But we'll tackle them incrementally in #2124. This fixes one of them, about disconnected sheets, but leaves the ones having to do with <link> and @import and parsing alone for now.
domenic
added a commit
that referenced
this issue
Jan 24, 2018
In particular, fixes #2122, where it was discovered that as of 8c84ebf we wrongly made the sheet null for empty <style> elements. There are a lot more issues with this area of the codebase, as discovered in #2122 (comment). But we'll tackle them incrementally in #2124. This fixes one of them, about disconnected sheets, but leaves the ones having to do with <link> and @import and parsing alone for now.
domenic
added a commit
that referenced
this issue
Jan 25, 2018
In particular, fixes #2122, where it was discovered that as of 8c84ebf we wrongly made the sheet null for empty <style> elements. There are a lot more issues with this area of the codebase, as discovered in #2122 (comment). But we'll tackle them incrementally in #2124. This fixes one of them, about disconnected sheets, but leaves the ones having to do with <link> and @import and parsing alone for now.
Any plans to fix the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From @TimothyGu's research in #2122 (comment), tracked here separately:
<style>
has a nullsheet
property; regressed in 8c84ebf. (TypeError: Cannot read property 'cssRules' of undefined #2122)<style>
with spaces will cause parse errors; probably regressed in 8c84ebf. (Could not parse CSS Stylesheet, when inline style tag font-family has space #2123)<style>
elements that are not connected (or got disconnected) but with inner text still have a non-nullsheet
(this sheet is also indocument.styleSheets
when it shouldn't be)@import
s in style don't work (this is an issue in new API, as the default FetchExternalResources does not have "style", only "link")link
with@import
hassheet
pointed to the imported sheetlink
can get into wrong order indocument.styleSheets
I'm working on an incoming PR to fix some, but not all of these.
The text was updated successfully, but these errors were encountered: