We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24571ca commit ab24feeCopy full SHA for ab24fee
src/nu/validator/htmlparser/impl/TreeBuilder.java
@@ -3298,17 +3298,20 @@ public static String extractCharsetFromContent(String attributeValue
3298
}
3299
3300
3301
- String charset = null;
3302
if (start != -1) {
3303
if (end == -1) {
3304
- end = buffer.length;
+ if (charsetState == CHARSET_UNQUOTED) {
+ end = buffer.length;
3305
+ } else {
3306
+ return null;
3307
+ }
3308
- charset = Portability.newStringFromBuffer(buffer, start, end
3309
+ return Portability.newStringFromBuffer(buffer, start, end
3310
- start
3311
// CPPONLY: , tb, false
3312
);
3313
- return charset;
3314
3315
3316
3317
private void checkMetaCharset(HtmlAttributes attributes)
0 commit comments