dom: expose obsolete scheme attribute for meta tag (#35505)

* dom: expose obsolete `scheme` attribute for meta tag

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>

* update tests

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-02-17 15:07:24 +08:00 committed by GitHub
parent a17b2e0cb2
commit d466688526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 123 deletions

View file

@ -240,6 +240,11 @@ impl HTMLMetaElementMethods<crate::DomTypeHolder> for HTMLMetaElement {
make_getter!(HttpEquiv, "http-equiv");
// https://html.spec.whatwg.org/multipage/#dom-meta-httpequiv
make_atomic_setter!(SetHttpEquiv, "http-equiv");
// https://html.spec.whatwg.org/multipage/#dom-meta-scheme
make_getter!(Scheme, "scheme");
// https://html.spec.whatwg.org/multipage/#dom-meta-scheme
make_setter!(SetScheme, "scheme");
}
impl VirtualMethods for HTMLMetaElement {