fix crash when loading html
This commit is contained in:
committed by
Mark Thom
parent
cbdd0fbf15
commit
725def07cd
11
tests-pl/issue2949.pl
Normal file
11
tests-pl/issue2949.pl
Normal file
@@ -0,0 +1,11 @@
|
||||
:- use_module(library(sgml)).
|
||||
|
||||
test :-
|
||||
load_html("<!DOCTYPE html><html><head><title>Hello!</title></head></html>", Es, []),
|
||||
write(Es),
|
||||
load_html("<!DOCTYPE html><html><head><title>Hello!</title><!-- comment --></head></html>", Es2, []),
|
||||
write(Es2),
|
||||
load_html("<!", Es3, []),
|
||||
write(Es3).
|
||||
|
||||
:- initialization(test).
|
||||
Reference in New Issue
Block a user