2017-02-18 21:56:31 +00:00
|
|
|
/* attrget.c -- Additional attribute API
|
2011-11-17 02:44:16 +00:00
|
|
|
|
|
|
|
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
|
|
|
See tidy.h for the copyright notice.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "tidy-int.h"
|
|
|
|
#include "tidy.h"
|
|
|
|
|
|
|
|
TidyAttr TIDY_CALL tidyAttrGetById( TidyNode tnod, TidyAttrId attId )
|
|
|
|
{
|
|
|
|
Node* nimp = tidyNodeToImpl(tnod);
|
|
|
|
return tidyImplToAttr( TY_(AttrGetById)( nimp, attId ) );
|
|
|
|
}
|
|
|
|
|
2017-02-18 21:56:31 +00:00
|
|
|
|
|
|
|
Bool TIDY_CALL tidyAttrIsEvent( TidyAttr tattr )
|
|
|
|
{
|
|
|
|
return TY_(attrIsEvent)( tidyAttrToImpl(tattr) );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-11-17 02:44:16 +00:00
|
|
|
/*
|
|
|
|
* local variables:
|
|
|
|
* mode: c
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* eval: (c-set-offset 'substatement-open 0)
|
|
|
|
* end:
|
|
|
|
*/
|