mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Support align attribute on HTMLParagraphElement interface (#36054)
Signed-off-by: Stephen Muss <stephenmuss@gmail.com>
This commit is contained in:
parent
a442a11330
commit
07e06f5635
4 changed files with 11 additions and 122 deletions
|
@ -6,7 +6,9 @@ use dom_struct::dom_struct;
|
|||
use html5ever::{LocalName, Prefix};
|
||||
use js::rust::HandleObject;
|
||||
|
||||
use crate::dom::bindings::codegen::Bindings::HTMLParagraphElementBinding::HTMLParagraphElementMethods;
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::str::DOMString;
|
||||
use crate::dom::document::Document;
|
||||
use crate::dom::htmlelement::HTMLElement;
|
||||
use crate::dom::node::Node;
|
||||
|
@ -46,3 +48,11 @@ impl HTMLParagraphElement {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLParagraphElementMethods<crate::DomTypeHolder> for HTMLParagraphElement {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-p-align
|
||||
make_getter!(Align, "align");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-p-align
|
||||
make_setter!(SetAlign, "align");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue