mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibWeb/HTML: Consider <a> all-named elements instead of <link>
Leaving only the unimplemented legacy [[Call]] override funkiness of HTMLAllCollection left not passing in the WPT tests.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
c70431672e
commit
910ff8b694
@@ -12,6 +12,7 @@
|
||||
#include <LibWeb/DOM/ParentNode.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/HTMLAllCollection.h>
|
||||
#include <LibWeb/HTML/HTMLAnchorElement.h>
|
||||
#include <LibWeb/HTML/HTMLButtonElement.h>
|
||||
#include <LibWeb/HTML/HTMLEmbedElement.h>
|
||||
#include <LibWeb/HTML/HTMLFormElement.h>
|
||||
@@ -20,7 +21,6 @@
|
||||
#include <LibWeb/HTML/HTMLIFrameElement.h>
|
||||
#include <LibWeb/HTML/HTMLImageElement.h>
|
||||
#include <LibWeb/HTML/HTMLInputElement.h>
|
||||
#include <LibWeb/HTML/HTMLLinkElement.h>
|
||||
#include <LibWeb/HTML/HTMLMapElement.h>
|
||||
#include <LibWeb/HTML/HTMLMetaElement.h>
|
||||
#include <LibWeb/HTML/HTMLObjectElement.h>
|
||||
@@ -68,7 +68,7 @@ void HTMLAllCollection::visit_edges(Cell::Visitor& visitor)
|
||||
static bool is_all_named_element(DOM::Element const& element)
|
||||
{
|
||||
// The following elements are "all"-named elements: a, button, embed, form, frame, frameset, iframe, img, input, map, meta, object, select, and textarea
|
||||
return is<HTML::HTMLLinkElement>(element)
|
||||
return is<HTML::HTMLAnchorElement>(element)
|
||||
|| is<HTML::HTMLButtonElement>(element)
|
||||
|| is<HTML::HTMLEmbedElement>(element)
|
||||
|| is<HTML::HTMLFormElement>(element)
|
||||
|
||||
Reference in New Issue
Block a user