Skip to content

Commit

Permalink
small fixes to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Apr 24, 2024
1 parent 6826dfe commit 4bba0a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ html = <<~HTML
<!doctype html>
<html lang="en">
<head>
<meta encoding="UTF-8">
<meta charset="utf-8">
</head>
<body>
<h1>Hello, world!</h1>
Expand Down
9 changes: 6 additions & 3 deletions lib/nokogiri/html5/inference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ module HTML5
# # => "<td>foo</td>"
# ```
#
# Hurrah! This is precisely what Nokogiri::HTML5::Inference.parse does: make reasonable inferences
# that work for both HTML5 documents and HTML5 fragments, and for all the different HTML5 tags that a
# web developer might need in a view library.
# Hurrah! This is precisely what Nokogiri::HTML5::Inference.parse does:
#
# ``` ruby
# Nokogiri::HTML5::Inference.parse("<td>foo</td>").to_html
# # => "<td>foo</td>"
# ```
#
module Inference
# Tags that must be parsed in a specific HTML5 insertion mode, for which we must use a
Expand Down

0 comments on commit 4bba0a1

Please sign in to comment.