PR 5440 requests that the 'electric' > in XML boxes work properly in
this situation: <a x="<b and, in particular, not do this: <a x="<b></b> Looking into this a bit, it isnt' clear how to do this without actually parsing the whole buffer, something that doesn't seem to be worth the effort with the amount of use that the XML boxes seem to get So, for now: closes PR 5440
This commit is contained in:
parent
ac8990d519
commit
2c018a749c
|
@ -15,6 +15,9 @@
|
|||
(check-equal? (find-tag/end "<a>") "a")
|
||||
(check-equal? (find-tag/end "<abcdef>") "abcdef")
|
||||
(check-equal? (find-tag/end "<abcdef x=\"3\">") "abcdef")
|
||||
(check-equal? (find-tag/end "<abcdef >") "abcdef")
|
||||
(check-equal? (find-tag/end "<a><b>") "b")
|
||||
(check-equal? (find-tag/end "<a x=\"z\"><b>") "b")
|
||||
|
||||
(check-equal? (find-tag/end "<a></a>") #f)
|
||||
|
||||
|
@ -24,3 +27,11 @@
|
|||
(check-equal? (find-tag/end "<!-->") #f)
|
||||
|
||||
(check-equal? (find-tag/end "<>") #f)
|
||||
|
||||
;; would be nice to make these two tests work, but
|
||||
;; it isn't clear what the right predicate is when
|
||||
;; searching backwards to get thse right but
|
||||
;; not also get this one wrong:
|
||||
;; "<a x="z"><b>
|
||||
; (check-equal? (find-tag/end "<a y=\"<b>") #f)
|
||||
; (check-equal? (find-tag/end "<a y=\"<b><c>") #f)
|
||||
|
|
Loading…
Reference in New Issue
Block a user