Commit cd8b9c31 authored by hausmann@webkit.org's avatar hausmann@webkit.org

2008-11-06 Simon Hausmann <hausmann@webkit.org>

        Reviewed by Tor Arne Vestbø.

        Improved documentation for QWebFrame::metaData().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38160 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 96d600d4
......@@ -286,7 +286,33 @@ QString QWebFrame::title() const
/*!
\since 4.5
\brief Returns the meta data in this frame as a QMultiMap
\sa metaData()
The meta data consists of the name and content attributes of the
of the \c{<meta>} tags in the HTML document.
For example:
\code
<html>
<head>
<meta name="description" content="This document is a tutorial about Qt development">
<meta name="keywords" content="Qt, WebKit, Programming">
</head>
...
</html>
\endcode
Given the above HTML code the metaData() function will return a map with two entries:
\table
\header \o Key
\o Value
\row \o "description"
\o "This document is a tutorial about Qt development"
\row \o "keywords"
\o "Qt, WebKit, Programming"
\endtable
This function returns a multi map to support multiple meta tags with the same name attribute.
*/
QMultiMap<QString, QString> QWebFrame::metaData() const
{
......
2008-11-06 Simon Hausmann <hausmann@webkit.org>
Reviewed by Tor Arne Vestbø.
Improved documentation for QWebFrame::metaData().
* Api/qwebframe.cpp:
2008-11-05 Sriram Yadavalli <sriram.yadavalli@nokia.com>
Reviewed by Simon Hausmann.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment