mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	LibHTML: Don't swallow '}' as part of CSS property values
This commit is contained in:
		
							parent
							
								
									397acde846
								
							
						
					
					
						commit
						56764a2db8
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -123,6 +123,9 @@ public: | |||
| 
 | ||||
|     char consume_specific(char ch) | ||||
|     { | ||||
|         if (peek() != ch) { | ||||
|             dbg() << "peek() != '" << ch << "'"; | ||||
|         } | ||||
|         PARSE_ASSERT(peek() == ch); | ||||
|         PARSE_ASSERT(index < css.length()); | ||||
|         ++index; | ||||
|  | @ -282,7 +285,7 @@ public: | |||
| 
 | ||||
|     bool is_valid_property_value_char(char ch) const | ||||
|     { | ||||
|         return ch && ch != '!' && ch != ';'; | ||||
|         return ch && ch != '!' && ch != ';' && ch != '}'; | ||||
|     } | ||||
| 
 | ||||
|     Optional<StyleProperty> parse_property() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling