Skip to content

Commit 070c5ab

Browse files
committed
XHTMLDocument: do the meta "Default-Style" case-insensitive comparison on lowercase "default-style" to avoid case conversions.
(cherry picked from commit 8b7a480)
1 parent 03352a2 commit 070c5ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/io/sf/carte/doc/dom4j/XHTMLDocument.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,13 +590,14 @@ public boolean hasStyleIssues() {
590590
}
591591

592592
public void onMetaAdded(String name, String attribute) {
593-
if ("Default-Style".equalsIgnoreCase(name)) {
593+
if ("default-style".equalsIgnoreCase(name)) {
594594
metaDefaultStyleSet = attribute;
595+
onStyleModify();
595596
}
596597
}
597598

598599
public void onMetaRemoved(String name, String attribute) {
599-
if ("Default-Style".equalsIgnoreCase(name)) {
600+
if ("default-style".equalsIgnoreCase(name)) {
600601
metaDefaultStyleSet = "";
601602
}
602603
}

0 commit comments

Comments
 (0)