Skip to content

Commit 304c8d5

Browse files
committed
DocumentFragment does not need to inherit from anything
1 parent 2dbe4fc commit 304c8d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ Now this filter can be used in a pipeline:
212212
Pipeline.new [ RootRelativeFilter ], { base_url: 'http://somehost.com' }
213213
```
214214

215+
We use [HTMLKit](https://github.com/iabudiab/HTMLKit) for document parsing in `MotionHTMLPipeline::DocumentFragment`.
216+
215217
### 3rd Party Extensions
216218

217219
Many people have built their own filters for [html-pipeline](https://github.com/jch/html-pipeline/issues). Although these have not been converted to run with RubyMotion, most of them should be easy convert.

lib/motion-html-pipeline/document_fragment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Not meant to duplicate Nokogiri completely, just add a similar interface
55
#------------------------------------------------------------------------------
66
module MotionHTMLPipeline
7-
class DocumentFragment < HTMLDocument
7+
class DocumentFragment
88
attr_reader :document
99

1010
def self.parse(html)

0 commit comments

Comments
 (0)