question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parsers skips more content than browsers in case of error in browser-compliant mode

See original GitHub issue

Hi 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:closed
  • Created 7 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
phaxcommented, May 20, 2016

I will do later today 😃

0reactions
phaxcommented, May 21, 2016

done

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found