class Nokogiri::HTML4::ElementDescription
Constants
- ACTION_ATTR
- ALIGN_ATTR
- ALT_ATTR
- APPLET_ATTRS
- AREA_ATTRS
- ATTRS
- A_ATTRS
- BASEFONT_ATTRS
- BGCOLOR_ATTR
- BLOCK
- BLOCKLI_ELT
- BODY_ATTRS
- BODY_CONTENTS
- BODY_DEPR
- BUTTON_ATTRS
- CELLHALIGN
- CELLVALIGN
- CLEAR_ATTRS
- COL_ATTRS
- COL_ELT
- COMPACT_ATTR
- COMPACT_ATTRS
- CONTENT_ATTR
- COREATTRS
- CORE_ATTRS
- CORE_I18N_ATTRS
- DIR_ATTR
- DL_CONTENTS
- DefaultDescriptions
-
This is filled in down below.
- Desc
-
Methods are defined protected by method_defined? because at this point the C-library or Java library is already loaded, and we don’t want to clobber any methods that have been defined there.
- EDIT_ATTRS
- EMBED_ATTRS
- EMPTY
- EVENTS
- FIELDSET_CONTENTS
- FLOW
- FLOW_PARAM
- FONTSTYLE
-
Attributes defined and categorized
- FONT_ATTRS
- FORMCTRL
- FORM_ATTRS
- FORM_CONTENTS
- FRAMESET_ATTRS
- FRAMESET_CONTENTS
- FRAME_ATTRS
- HEADING
- HEAD_ATTRS
- HEAD_CONTENTS
- HREF_ATTRS
- HR_DEPR
- HTML_ATTRS
- HTML_CDATA
- HTML_CONTENT
- HTML_FLOW
- HTML_INLINE
- HTML_PCDATA
- I18N
- I18N_ATTRS
- IFRAME_ATTRS
- IMG_ATTRS
- INLINE
- INLINE_P
- INPUT_ATTRS
- LABEL_ATTR
- LABEL_ATTRS
- LANGUAGE_ATTR
- LEGEND_ATTRS
- LINK_ATTRS
- LIST
- LI_ELT
- MAP_CONTENTS
- META_ATTRS
- MODIFIER
- NAME_ATTR
- NOFRAMES_CONTENT
- OBJECT_ATTRS
- OBJECT_CONTENTS
- OBJECT_DEPR
- OL_ATTRS
- OPTGROUP_ATTRS
- OPTION_ATTRS
- OPTION_ELT
- PARAM_ATTRS
- PCDATA
- PHRASE
- PRE_CONTENT
- PROMPT_ATTRS
- QUOTE_ATTRS
- ROWS_COLS_ATTR
- SCRIPT_ATTRS
- SELECT_ATTRS
- SELECT_CONTENT
- SPECIAL
- SRC_ALT_ATTRS
- STYLE_ATTRS
- TABLE_ATTRS
- TABLE_CONTENTS
- TABLE_DEPR
- TALIGN_ATTRS
- TARGET_ATTR
- TEXTAREA_ATTRS
- TH_TD_ATTR
- TH_TD_DEPR
- TR_CONTENTS
- TR_ELT
- TYPE_ATTR
- UL_DEPR
- VERSION_ATTR
- WIDTH_ATTR
Public Instance Methods
# File lib/nokogiri/html4/element_description.rb, line 8 def block? !inline? end
Is this element a block element?
# File lib/nokogiri/html4/element_description_defaults.rb, line 57 def default_sub_element default_desc&.defaultsubelt end
# File lib/nokogiri/html4/element_description_defaults.rb, line 45 def deprecated? default_desc&.depr end
# File lib/nokogiri/html4/element_description_defaults.rb, line 70 def deprecated_attributes d = default_desc d ? d.attrs_depr : [] end
# File lib/nokogiri/html4/element_description_defaults.rb, line 51 def description default_desc&.desc end
# File lib/nokogiri/html4/element_description_defaults.rb, line 33 def implied_end_tag? default_desc&.endTag end
# File lib/nokogiri/html4/element_description_defaults.rb, line 27 def implied_start_tag? default_desc&.startTag end
# File lib/nokogiri/html4/element_description.rb, line 20
def inspect
"#<#{self.class.name}: #{name} #{description}>"
end Inspection information
# File lib/nokogiri/html4/element_description_defaults.rb, line 63 def optional_attributes d = default_desc d ? d.attrs_opt : [] end
# File lib/nokogiri/html4/element_description_defaults.rb, line 77 def required_attributes d = default_desc d ? d.attrs_req : [] end
# File lib/nokogiri/html4/element_description_defaults.rb, line 39 def save_end_tag? default_desc&.saveEndTag end
# File lib/nokogiri/html4/element_description.rb, line 14
def to_s
"#{name}: #{description}"
end Convert this description to a string
© 2008–2023 by Mike Dalessio, Aaron Patterson, Yoko Harada, Akinori MUSHA, John Shahid,
Karol Bucek, Sam Ruby, Craig Barnes, Stephen Checkoway, Lars Kanis, Sergio Arbeo,
Timothy Elliott, Nobuyoshi Nakada, Charles Nutter, Patrick MahoneyLicensed under the MIT License.
https://nokogiri.org/rdoc/Nokogiri/HTML4/ElementDescription.html