libxml: 2.9.4
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><script>
if (1 < 4) {
alert("hello");
}
</script></head></html>
Output for 7.1.10
libxml: 2.9.5
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><script>
if (1 < 4) {
alert("hello");
}
</script></head></html>
libxml: 2.9.3
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><script>
if (1 < 4) {
alert("hello");
}
</script></head></html>
Output for 5.4.0 - 5.4.45, 5.6.16, 7.0.0
libxml: 2.9.2
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><script>
if (1 < 4) {
alert("hello");
}
</script></head></html>
Output for 5.3.25 - 5.3.29
libxml: 2.9.1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><script>
if (1 < 4) {
alert("hello");
}
</script></head></html>
Output for 5.3.15 - 5.3.24
libxml: 2.8.0
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><script>
if (1 < 4) {
alert("hello");
}
</script></head></html>
libxml: 2.7.8
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><script>
if (1 < 4) {
alert("hello");
}
</script></head></html>
Output for 5.0.0 - 5.0.5
libxml:
Notice: Use of undefined constant LIBXML_DOTTED_VERSION - assumed 'LIBXML_DOTTED_VERSION' in /in/ATVDG on line 15
LIBXML_DOTTED_VERSION
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><script>
if (1 < 4) {
alert("hello");
}
</script></head></html>
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/ATVDG on line 12
Process exited with code 255.