Lexing support for unquoted HTML attribute values

This adds support for HTML such as:

    <a href=foo>HTML is a child of Satan itself</a>

Fixes #94
This commit is contained in:
Yorick Peterse committed 2015-04-15 01:23:46 +02:00
1 parent 23a441933a
commit afbb585812
5 files changed
+116 -3

No files matched your search

+2
View File
@@ -89,6 +89,8 @@ public class Lexer extends RubyObject
@JRubyMethod
public IRubyObject advance_native(ThreadContext context, RubyString rb_str)
{
Boolean html_p = this.callMethod(context, "html").isTrue();
Encoding encoding = rb_str.getEncoding();
byte[] data = rb_str.getBytes();