Closed
      
        Bug 3102
      
      
        Opened 26 years ago
          Closed 26 years ago
      
        
    
  
Stray semicolon not parsed as part of selector
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
        VERIFIED
        FIXED
        
    
  
People
(Reporter: ian, Assigned: peterl-retired)
References
()
Details
Per the CSS grammar, semicolons (";") are only allowed at the end of
an @-rule with no block, or actually inside a block.
NGLayout incorrectly allows semicolons to delimit empty rulesets. This is
invalid according to the CSS grammar.
For example, the following code:
   A { }; B { }
...is invalid CSS and should be parsed as:
   Selector:  A
   Block   :  { }
   Selector:  ; B
   Block   :  { }
since the second selector is invalid (semicolons have no place in selectors)
the resultant stylesheet would be
   A { }
See the quoted uri for a prefabricated test page.
| Assignee | ||
          Updated•26 years ago
           
         | 
      
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
| Reporter | ||
          Comment 1•26 years ago
           
         | 
      ||
Verified fixed.
| Reporter | ||
          Updated•26 years ago
           
         | 
      
Status: RESOLVED → VERIFIED
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•