Skip to content

Commit edb16b1

Browse files
author
David Hyatt
committed
Fix for 3800316, test 37 for tables is failing on the layout tests. Make sure we don't incorrectly match
non-HTML elements with HTML tag selectors in CSS. Reviewed by rjw * khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::checkOneSelector): Canonical link: https://commits.webkit.org/6702@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 025a0be commit edb16b1

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

WebCore/ChangeLog-2005-08-23

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2004-09-24 David Hyatt <hyatt@apple.com>
2+
3+
Fix for 3800316, test 37 for tables is failing on the layout tests. Make sure we don't incorrectly match
4+
non-HTML elements with HTML tag selectors in CSS.
5+
6+
Reviewed by rjw
7+
8+
* khtml/css/cssstyleselector.cpp:
9+
(khtml::CSSStyleSelector::checkOneSelector):
10+
111
2004-09-23 David Hyatt <hyatt@apple.com>
212

313
Fix for 3601920, CSS "tabs" not switching properly on zen garden design. Improve the repainting to account

WebCore/khtml/css/cssstyleselector.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,8 +1048,9 @@ bool CSSStyleSelector::checkOneSelector(DOM::CSSSelector *sel, DOM::ElementImpl
10481048
Q_UINT16 selLocalName = localNamePart(sel->tag);
10491049
Q_UINT16 selNS = namespacePart(sel->tag);
10501050

1051-
if (selNS == xhtmlNamespace && localName < ID_LAST_TAG)
1052-
selNS = anyNamespace; // Always match HTML elements even when in HTML docs.
1051+
if (localName < ID_LAST_TAG && e->isHTMLElement())
1052+
ns = xhtmlNamespace; // FIXME: Really want to move away from this complicated hackery and just
1053+
// switch tags and attr names over to AtomicStrings.
10531054

10541055
if ((selLocalName != anyLocalName && localName != selLocalName) ||
10551056
(selNS != anyNamespace && ns != selNS))

0 commit comments

Comments
 (0)