- Fix
bump-versionscript to saveCFBundleVersionas a string (not a number) inInfo.plist. (Fixes #74.)
- Fix a compiler warning new to Xcode 8.3.
- Move tests folder to support Swift 3's Package Manager.
- Fix retain cycle on documents created with
-[HTMLDocument initWithData:contentTypeHeader:].
- Fix buffer overflow when parsing named entities.
- This would happen when attempting to parse the first semicolonless named entity
AElig.
- This would happen when attempting to parse the first semicolonless named entity
- Fix
HTMLElement's subscripting abilities not getting bridged into Swift (issue #59 revisited).- This is a breaking change because Swift code used to see
HTMLElement.objectForKeyedSubscript(_:)and now seesHTMLElement.subscript(_:).
- This is a breaking change because Swift code used to see
- Update project and playground for Xcode 8 and Swift 3.
- Pass updated html5lib-tests.
- Update return type of
-[HTMLNode textComponents]to an array ofNSString. - Add a nonempty
Package.swiftas now required by Swift Package Manager.
1.0 – 2016-07-02
- Rearrange source folder tree to match Swift Package Manager convention.
- Update html5lib-tests submodule to fix cloning.
0.9.6 – 2016-04-02
- Fix Objective-C generics (and their import into Swift) by spelling things correctly. (Fixes #59.) (Fixes #60.)
- Revert back to quoted
#importto fix installation by copying files over.
0.9.5 – 2016-03-15
- Fix incorrect parsing of selector groups when a selector included a pseudo-class.
0.9.4 – 2016-02-02
- Fix nullability attributions and uses of nullable values.
- Fixed by dlkinney in #49.
- Add
-[HTMLDocument bodyElement]for convenient access to the<body>element.- Added by zoul in #57.
- Add
-addChild:and-removeChild:methods toHTMLNodefor convenient access to the most common node manipulations.
0.9.3 – 2015-11-08
- Add tvos deployment target to podspec.
0.9.2 – 2015-10-25
- Make
HTMLTextNodepublicly accessible so that instances are usable when enumerating a node's descendants. - Add
-[HTMLNode textComponents]for convenient access to a node's direct text contents.
0.9.1 – 2015-10-23
- Export public headers when building static library.
- Add watchos deployment target to podspec.
0.9 – 2015-09-20
- Add selector groups (e.g.
p, spanto find all paragraphs and spans). Works in:not()too.
0.8.2 – 2015-09-03
- Fix a crash when a document provides an unhelpful
<meta charset=>.
0.8.1 – 2015-07-29
- HTMLReader no longer crashes when the
Content-Typeheader has the wrong string encoding. Instead, it will pretend that theContent-Typehad said nothing at all.
0.8 – 2015-06-27
- The public API now has nullability annotations.
- The public API now uses generics where available.
- Some default values have changed when initializing nodes via
init, in order to conform to the (now explicit) nullability annotations:HTMLCommentdefaults to adataof "" (the empty string). Previously its defaultdatawasnil.HTMLDocumentTypedefaults to anameof "html". Previously its defaultnamewasnil.HTMLElementdefaults to atagNameof "" (the empty string). Previously its defaulttagNamewasnil.
- Nullability annotations for parameters are checked using NSParameterAssert. Some methods which previously returned
nilwhen passed anilparameter will now raise an assertion error. If you get assertion errors after upgrading where you previously did not get assertion errors, this may be why. HTMLNode's-nodesMatchingSelector:,-firstNodeMatchingSelector,-nodesMatchingParsedSelector:, and-firstNodeMatchingParsedSelector:methods now always throw anNSInvalidArgumentExceptionif the selector fails to parse. Previously they would raise an assertion, but otherwise fail in other (more poorly-defined) ways.- Use angle bracket imports (
#import <HTMLReader/…>) throughout public headers, like a proper framework.
0.7.1 – 2015-04-03
- Selectors can now include escaped characters, allowing for e.g. matching elements like
<some-ns:some-tag>using a selector likesome-ns\:some-tag. Supported escapes are\XXXXXXfor 1-6 hex digitsX, and\cfor any other characterc.
0.7 – 2015-03-16
- Rename
namespaceproperties tohtmlNamespaceto support compilation as Objective-C++.
0.6.2 – 2015-03-15
- Update build settings to allow
HTMLReader.frameworkuse in Swift on OS X.
0.6.1 – 2015-02-06
- Remove private header
HTMLTextNode.hfrom the built framework.
0.6 – 2015-02-06
- A new document initializer,
-[HTMLDocument initWithData:contentTypeHeader:], detects the character encoding as a browser would. This is the ideal initializer for HTML documents fetched over the network, or any other time when the character encoding isn't previously known. Note that HTML does not blindly use the encoding specified by the HTTPContent-Typeheader, so this initializer is still superior to parsing theContent-Typeyourself.