mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibHTML: Handle comments in the CSS parser
Turn consume_whitespace() into consume_whitespace_or_comments() and have it swallow /* comments */ as well.
This commit is contained in:
parent
b083a233d8
commit
08209cc665
2 changed files with 42 additions and 27 deletions
|
@ -4,10 +4,15 @@
|
|||
<title>Welcome!</title>
|
||||
<!-- this is a comment -->
|
||||
<style type="text/css">
|
||||
/* css comment */
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
color: #000; /* another css comment */
|
||||
}
|
||||
/* lol
|
||||
a
|
||||
css
|
||||
comment */
|
||||
h1 {
|
||||
color: #800;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue