class

Slang::Parser

Inherits Reference < Object

Constants

INERT_SCRIPT_TYPES = ["application/json", "application/ld+json", "text/template", "text/plain"] of ::String

<script> content types that the browser does not execute.

A <script> with one of these type values may have Slang children; any other <script> must be bodyless. <style> is always bodyless.

Constructors

new(source : String)
Source

Class methods

parse(source : String) : AST::Document

Parses source and returns the resulting document.

Source

Instance methods

parse_document
Source