GithubHelp home page GithubHelp logo

html-parser's People

Contributors

liigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html-parser's Issues

测试 test-html-parser 的时候有错误,能否提供一些其它例子?

[code]<a href="xxxxx" ccc=w>AAA
BB

CC

DD[/code]

比如这个 我想取得A标签的文本"AAABBDD" 如何取得?

测试您的例子时报以下错误

PS: 不知道怎么贴代码,囧

[code]

Microsoft Visual C++ Debug Library

Debug Assertion Failed!

Program: ...nts\Visual Studio 2010\Projects\CPP\cunese\Compiled\dCURL.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\isctype.c
Line: 56

Expression: (unsigned)(c + 1) <= 256

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

中止(A) 重试(R) 忽略(I)

[/code]

Invalid memory management under platform X86_X64

X86_X64 平台下使用出现无效内存访问.
跟踪代码发现.

struct HtmlAttribute
{
	char* name;   //属性名称
	char* value;  //属性值
	size_t flags; //bit OR of HtmlNodeFlag !!!Here you use size_t
};

但是在属性解析中的appendInt接口中, 在内存中追加int ,而不是size_t , 平台不兼容.

	inline size_t appendInt(int i) { return appendData(&i, sizeof(i)); }
	inline size_t appendInt(size_t i) { return appendData(&i, sizeof(i)); } // Added
        //标记需free属性名称和属性值文本
        //TODO: 将来优化到尽量少复制文本
        attributes->appendInt((size_t)(FLAG_NEED_FREE_NAME | FLAG_NEED_FREE_VALUE)); //attribute flags !!!修改之后的代码

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.