Class: Mullet::HTML::Parser::DefaultHandler

Inherits:
Nokogiri::XML::SAX::Document
  • Object
show all
Defined in:
lib/mullet/html/parser/default_handler.rb

Overview

SAX event handler implementation which can be subclassed.

Direct Known Subclasses

Mullet::HTML::PageBuilder, TemplateBuilder

Instance Method Summary collapse

Instance Method Details

#doctype(name, public_id, system_id) ⇒ Object

Called at a DOCTYPE declaration.

Parameters:

  • name (String)

    document type name

  • public_id (String)

    public identifier, or nil if not specified

  • system_id (String)

    system identifier, or nil if not specified



16
17
# File 'lib/mullet/html/parser/default_handler.rb', line 16

def doctype(name, public_id, system_id)
end

#processing_instruction(data) ⇒ Object

Called at a processing instruction.

Parameters:

  • data (String)

    processing instruction data



23
24
# File 'lib/mullet/html/parser/default_handler.rb', line 23

def processing_instruction(data)
end