Skip to content

Commit

Permalink
Expose Html.Parser.Attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 21, 2019
1 parent 95bd51e commit 1e9f6d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]


## [2.1.0] - 2019-02-21
### Added
- Expose `Html.Parser.Attribute` type alias so the documentation is complete.

## [2.0.1] - 2019-02-15
### Changed
- Fix parser erroring when input is an empty string. Thanks to @doanythingfordethklok!
Expand All @@ -30,7 +35,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

[named-character-references]: https://www.w3.org/TR/html5/syntax.html#named-character-references

[Unreleased]: https://github.com/hecrj/html-parser/compare/2.0.1...HEAD
[Unreleased]: https://github.com/hecrj/html-parser/compare/2.1.0...HEAD
[2.1.0]: https://github.com/hecrj/html-parser/compare/2.0.1...2.1.0
[2.0.1]: https://github.com/hecrj/html-parser/compare/2.0.0...2.0.1
[2.0.0]: https://github.com/hecrj/html-parser/compare/1.1.0...2.0.0
[1.1.0]: https://github.com/hecrj/html-parser/compare/1.0.1...1.1.0
Expand Down
2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "hecrj/html-parser",
"summary": "Parse HTML 5 in Elm",
"license": "BSD-3-Clause",
"version": "2.0.1",
"version": "2.1.0",
"exposed-modules": [
"Html.Parser",
"Html.Parser.Util"
Expand Down
9 changes: 7 additions & 2 deletions src/Html/Parser.elm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module Html.Parser exposing (run, Node(..))
module Html.Parser exposing (run, Node(..), Attribute)

{-| Parse HTML 5 in Elm.
See <https://www.w3.org/TR/html5/syntax.html>
@docs run, Node
@docs run, Node, Attribute
-}

Expand Down Expand Up @@ -45,6 +45,11 @@ type Node
| Comment String


{-| An HTML attribute. For instance:
( "href", "https://elm-lang.org" )
-}
type alias Attribute =
( String, String )

Expand Down

0 comments on commit 1e9f6d3

Please sign in to comment.