001package org.jsoup.nodes; 002 003import org.jsoup.internal.QuietAppendable; 004import org.jsoup.parser.Tag; 005 006/** 007 * Represents a {@link TextNode} as an {@link Element}, to enable text nodes to be selected with 008 * the {@link org.jsoup.select.Selector} {@code :matchText} syntax. 009 * @deprecated use {@link Element#selectNodes(String, Class)} instead, with selector of <code>::textnode</code> and class <code>TextNode</code>; 010 * will be removed in jsoup 1.24.1. 011 */ 012@Deprecated 013public class PseudoTextElement extends Element { 014 015 public PseudoTextElement(Tag tag, String baseUri, Attributes attributes) { 016 super(tag, baseUri, attributes); 017 } 018 019 @Override 020 void outerHtmlHead(QuietAppendable accum, Document.OutputSettings out) { 021 } 022 023 @Override 024 void outerHtmlTail(QuietAppendable accum, Document.OutputSettings out) { 025 } 026}