Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e27b57d
Conform ampersand-error reporting to HTML spec
sideshowbarker Dec 14, 2015
82ef614
Make consecutive hyphens in comments a non-error
sideshowbarker Jun 10, 2016
9706ad0
Correct error for EOF in “in template” state
sideshowbarker Jul 19, 2016
00ca1aa
Support “generate all implied end tags thoroughly”
sideshowbarker May 18, 2017
f761305
Mozilla bug 1650066 fixup - Avoid calling errListUnclosedStartTags in…
hsivonen Jul 2, 2020
5dbe041
Stay in the COMMENT_LESSTHAN state, annotate fall-throughs.
sideshowbarker Jul 2, 2020
3aa0900
Limit ambiguous-ampersand wasteful buffering
sideshowbarker Jul 2, 2020
b453d95
POM: add an automatic module name entry to MANIFEST.MF.
carlosame Apr 18, 2020
7675682
Update xom dependency to 1.3.5+ in pom.xml
sideshowbarker Jul 4, 2020
2bc081c
Remove support for RPM packages from pom.xml
sideshowbarker Jul 4, 2020
2d67fe3
Remove support for OSGi bundles from pom.xml
sideshowbarker Jul 4, 2020
18a7948
Remove com.sun.tools dependency from pom.xml
sideshowbarker Jul 4, 2020
cfb616c
Update source and target values to 1.7 in pom.xml
sideshowbarker Jul 4, 2020
369fa88
Remove ruby-gcj
sideshowbarker Jul 4, 2020
58f05e7
Add .mailmap
sideshowbarker Jul 28, 2020
c37ed3b
Add .settings/ to .gitignore
sideshowbarker Jul 28, 2020
19d2492
Update comment re: named-charref spec-code clash
sideshowbarker Aug 3, 2020
2447729
Flush w/ emitOrAppendCharRefBuf, not ad-hoc code
sideshowbarker Aug 3, 2020
a3d911d
Don't consume char at AMBIGUOUS_AMPERSAND start
sideshowbarker Aug 3, 2020
61325c3
Fix AMBIGUOUS_AMPERSAND state
sideshowbarker Aug 5, 2020
d205660
Fix broken maven build due to maven-antrun-plugin being unable to loc…
carlosame Jul 5, 2020
7722be4
General cleanup of the POM file, prerequisite for modularization
carlosame Jul 5, 2020
8570585
Maven POM: update dependency version for jsontools.
carlosame Jul 5, 2020
2ad928a
Maven POM: update the 'scm' information
carlosame Jul 5, 2020
4e33cbc
Modularize the library, modifying the POM and adding a module-info
carlosame Jul 5, 2020
b047f93
Maven POM: Use <doclint>none</doclint> for javadoc
sideshowbarker Jul 6, 2020
cf8e4a4
Maven POM: Use https URLs
sideshowbarker Jul 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Limit ambiguous-ampersand wasteful buffering
This refines 9ce4bd4 by only buffering if we’re actually inside an
attribute value.
  • Loading branch information
sideshowbarker committed Aug 10, 2020
commit 3aa0900a9f4c9f004b6aa954773c93b105cd638e
8 changes: 7 additions & 1 deletion src/nu/validator/htmlparser/impl/Tokenizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -3539,7 +3539,13 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
} else if ((c >= '0' && c <= '9')
|| (c >= 'A' && c <= 'Z')
|| (c >= 'a' && c <= 'z')) {
appendStrBuf(c);
if (returnState == ATTRIBUTE_VALUE_DOUBLE_QUOTED
|| returnState == ATTRIBUTE_VALUE_SINGLE_QUOTED
|| returnState == ATTRIBUTE_VALUE_UNQUOTED) {
appendStrBuf(c);
}
/* The following pos++ is necessary due to how we’ve
* handled the "reconsume" block for this case. */
pos++;
continue;
}
Expand Down