MDL-74492 editor_atto: <line> tags should not be confused with <li> tags
This commit is contained in:
committed by
Andrew Nicols
parent
c4b3e06f8a
commit
4fecc12ea1
+1
-1
@@ -1796,7 +1796,7 @@ EditorClean.prototype = {
|
||||
|
||||
// Use a regular expression to find the next open or close li, ul, or ol tag.
|
||||
// Keep going until there are no more matching tags left.
|
||||
while ((match = toProcess.match(/<(\/?)(li|ul|ol)[^>]*>/i))) {
|
||||
while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) {
|
||||
currentTag = {
|
||||
tag: match[2],
|
||||
tagLowerCase: match[2].toLowerCase(),
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1783,7 +1783,7 @@ EditorClean.prototype = {
|
||||
|
||||
// Use a regular expression to find the next open or close li, ul, or ol tag.
|
||||
// Keep going until there are no more matching tags left.
|
||||
while ((match = toProcess.match(/<(\/?)(li|ul|ol)[^>]*>/i))) {
|
||||
while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) {
|
||||
currentTag = {
|
||||
tag: match[2],
|
||||
tagLowerCase: match[2].toLowerCase(),
|
||||
|
||||
+1
-1
@@ -498,7 +498,7 @@ EditorClean.prototype = {
|
||||
|
||||
// Use a regular expression to find the next open or close li, ul, or ol tag.
|
||||
// Keep going until there are no more matching tags left.
|
||||
while ((match = toProcess.match(/<(\/?)(li|ul|ol)[^>]*>/i))) {
|
||||
while ((match = toProcess.match(/<(\/?)(li|ul|ol)\b[^>]*>/i))) {
|
||||
currentTag = {
|
||||
tag: match[2],
|
||||
tagLowerCase: match[2].toLowerCase(),
|
||||
|
||||
Reference in New Issue
Block a user