Contents

documentSource()

Returns the receiver’s source as text.

Declaration

func documentSource() -> String!

Return Value

Returns the document source associated with the receiver or nil if the source cannot be provided.

Discussion

For example, for HTML documents, the receiver should return the HTML source.

See Also

Getting document source