1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +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:
Andreas Kling 2019-10-13 00:28:15 +02:00
parent b083a233d8
commit 08209cc665
2 changed files with 42 additions and 27 deletions

View file

@ -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;
}