diff --git a/Cargo.toml b/Cargo.toml index 6bc33f78..1f8e5ebf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "html5ever" -version = "0.10.1" +version = "0.10.2" authors = [ "The html5ever Project Developers" ] license = "MIT / Apache-2.0" repository = "https://github.com/servo/html5ever" diff --git a/src/tokenizer/buffer_queue.rs b/src/tokenizer/buffer_queue.rs index e32e39a2..21fd02f1 100644 --- a/src/tokenizer/buffer_queue.rs +++ b/src/tokenizer/buffer_queue.rs @@ -43,6 +43,11 @@ impl BufferQueue { self.buffers.is_empty() } + /// Get the tendril at the beginning of the queue. + pub fn pop_front(&mut self) -> Option { + self.buffers.pop_front() + } + /// Add a buffer to the beginning of the queue. pub fn push_front(&mut self, buf: StrTendril) { if buf.len32() == 0 {