Commit a6b7d67 1 parent 67662d0 commit a6b7d67 Copy full SHA for a6b7d67
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ public function find_next_tag() {
577
577
* lead us to skip over other tags and lose track of our place. So we need to search for
578
578
* _every_ tag and then check after we find one if it's the one we are looking for.
579
579
*/
580
- "~<!--(?>.*?-->)|<!\[CDATA\[(?>.*?>)|<\?(?>.*?)>|<(?P<TAG>[a-z][^ \t\x{0A}\x{0C} /?>]*)~Smui " ,
580
+ "~<!--(?>.*?-->)|<!\[CDATA\[(?>.*?\]\] >)|<\?(?>.*?)>|<(?P<TAG>[a-z][^ \t\x{0A}\x{0C} /?>]*)~Smui " ,
581
581
$ this ->document ,
582
582
$ tag_match ,
583
583
PREG_OFFSET_CAPTURE ,
@@ -606,7 +606,7 @@ public function find_next_tag() {
606
606
public function find_next_attribute () {
607
607
// Find the attribute name
608
608
if ( 1 !== preg_match (
609
- '~[\t\x{0a}\x{0c}\x{0d} ]*(?P<NAME>=?[^=/>\t\x{0C} ]*)~Smiu ' ,
609
+ '~[\t\x{0a}\x{0c} ]*(?P<NAME>=?[^=/>\t\x{0A} \x{0C} ]*)~Smiu ' ,
610
610
$ this ->document ,
611
611
$ attribute_match ,
612
612
PREG_OFFSET_CAPTURE ,
@@ -643,7 +643,7 @@ public function find_next_attribute() {
643
643
break ;
644
644
645
645
default :
646
- $ pattern = '~(?P<VALUE>[^\t\x{0a}\x{0c}\x{0d} >]*)~Smiu ' ;
646
+ $ pattern = '~(?P<VALUE>[^\t\x{0a}\x{0c} >]*)~Smiu ' ;
647
647
break ;
648
648
}
649
649
You can’t perform that action at this time.
0 commit comments