Skip to content

Commit

Permalink
Fixed a mistake between xml and html
Browse files Browse the repository at this point in the history
  • Loading branch information
tid-kijyun committed Mar 26, 2020
1 parent b430be9 commit a6dd49f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Kanna/libxmlHTMLDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ final class libxmlHTMLDocument: HTMLDocument {
}

let url : String = ""
docPtr = cur.withUnsafeBytes { xmlReadDoc($0.bindMemory(to: xmlChar.self).baseAddress!, url, charsetName, CInt(option)) }

docPtr = cur.withUnsafeBytes { htmlReadDoc($0.bindMemory(to: xmlChar.self).baseAddress!, url, charsetName, CInt(option)) }
guard let docPtr = docPtr else {
throw ParseError.EncodingMismatch
}
Expand Down

0 comments on commit a6dd49f

Please sign in to comment.