Parsers skips more content than browsers in case of error in browser-compliant mode
See original GitHub issueHi Philip. So, another issue from the fields. Here’s the excerpt from one CSS file, and the error-handling is slightly different as outlined in comments:
/* correct part */
table.fast th, table.fast td {
padding: 10px 10px;
text-align: left;
}
/* error that should be skipped*/
table.fast th background:#eee;
/* first correct part that skipped by both browsers and parser algorithm */
.ir {
display: block;
}
/* correct part that is skipped by parser but is read by browsers */
div.flexible-detail-left {
margin-bottom: 30px;
}
/* end of skipped part */
.some { more: css; }
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (11 by maintainers)
Top Results From Across the Web
[MS-FSDAP]: Message Elements of Type "Error"
ID Category Feature
1 BrowserCompatibility Controls
5 BrowserCompatibility Controls
6 BrowserCompatibility Controls
Read more >7 Common Cross Browser Compatibility Issues to Avoid
In this article, we will explore some of the most common reasons cross browser test cases can fail. Consider this a list of...
Read more >phax/ph-css: Advanced Java CSS 3 parser and builder - GitHub
In case of an unrecoverable error, the underlying parser engine of JavaCC throws ... Skipping style rules with invalid selectors in browser compliant...
Read more >How browsers work - web.dev
If no rule is found then the parser will raise an exception. This means the document was not valid and contained syntax errors....
Read more >Change or update your browser for a better experience
Change or update your browser for a better experience. To use Google One's features and benefits from your computer, you need the most...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I will do later today 😃
done