mirror of
				https://github.com/python/cpython.git
				synced 2025-10-26 03:04:41 +00:00 
			
		
		
		
	Accept commas in unquoted attribute values.
This closes SF patch #669683.
This commit is contained in:
		
							parent
							
								
									080cb3268f
								
							
						
					
					
						commit
						0834d77bc4
					
				
					 4 changed files with 10 additions and 2 deletions
				
			
		|  | @ -34,7 +34,7 @@ | |||
| tagfind = re.compile('[a-zA-Z][-_.a-zA-Z0-9]*') | ||||
| attrfind = re.compile( | ||||
|     r'\s*([a-zA-Z_][-:.a-zA-Z_0-9]*)(\s*=\s*' | ||||
|     r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./:;+*%?!&$\(\)_#=~\'"]*))?') | ||||
|     r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./,:;+*%?!&$\(\)_#=~\'"]*))?') | ||||
| 
 | ||||
| 
 | ||||
| class SGMLParseError(RuntimeError): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake